//入口文件
import Vue from 'vue'
import app from './App.vue'
//1.1 导入路由的包
import VueRouter from 'vue-router'
//1.2 安装路由
Vue.use(VueRouter)
//2.1 导入Vue-resource
import VueResource from 'vue-resource'
//2.2 安装Vue-resource
Vue.use(VueResource)
//导入MUI的组件
import "../lib/mui/css/mui.min.css"
import "../lib/mui/css/icons-extra.css"
//按需导入Mint-ui中的组件
import { Header,Swipe, SwipeItem } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
//1.3 导入自己的router.js路由模块
import './router.js'
import router from './router.js';
var vm=new Vue({
  el:'#app',
  render:c=>c(app),
  router//1.4 挂载自己的路由对象到VM实例上
})